#!/bin/bash
# initial page 
hugo new post/"$1".md
sed -i 's/draft: true/draft: false/g' ./content/post/"$1".md
# change page’s content
echo `fortune` >> ./content/post/"$1".md

# git
git config --global user.name "ikaros"
git config --global user.email "2781967369@qq.com"
git add .
git commit -m "$1 is created"
git push --set-upstream origin master
